package net.qhzw.vip.qiyu.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户账单表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "dts_user_bill")
public class DtsUserBill {
    /**
     * ID
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;



    @TableField(value = "user_id")
    private Long userId;

    /**
     * 账单类型 1:用户充值 2:系统充值 3:每日扣款
     */
    @TableField(value = "`type`")
    private Byte type;


    /**
     * 金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 创建时间
     */
    @TableField(value = "created")
    private Date created;

    /***
     * 显示状态 1:显示 2:不显示
     */
    @TableField(value = "status")
    private Byte status;

    @TableField(value = "remark")
    private String remark;

    public DtsUserBill(Long id, Long userId, Byte type, BigDecimal amount, Date created) {
        this.id = id;
        this.userId = userId;
        this.type = type;
        this.amount = amount;
        this.created = created;
    }
}